<div align=center>
    <div id="content">
        <div id="main">
            <?php if (is_string($info)) : ?>
                <h3 class="message">
                    <?php 
                    echo $info;
                    //unset($message);
                    ?>
                </h3>
            <?php endif; ?>
            <h1>Sign In</h1>
            <?php echo Form::open('shop/login'); ?>
            <div class="row username">
                <input type="text" id="username"
                       value="<?php if ((isset($_POST['username']) && !isset($message['username'])))
                           echo htmlspecialchars ($_POST['username']); ?>" name="username" placeholder="Username" />
                           <span class="hint">Please enter your username<span class="hint-pointer">&nbsp;                
            </div>
            <div class="error">
                    <?php if(isset($message['username'])) echo $message['username']; ?>
            </div>
            <div class="row pass">
                <input type="password" id="password" name="password" placeholder="Password" />
                <span class="hint">Enter your password<span class="hint-pointer">&nbsp;                
            </div>
            <div class="error">
                    <?php if(isset($message['password'])) echo $message['password']; ?>
            </div>
            <div style="margin-left: -125px; padding-top: 5px">
                <?php echo Form::checkbox('remember'); ?>
                <?php echo Form::label('remember', 'Remember Me'); ?>
            </div>
            <?php echo Form::submit('login', 'Login'); ?>            
            <?php echo Form::close(); ?>            
        </div>
        <div class="forgot">
            <a href="<?php echo 'http://' . $_SERVER['HTTP_HOST'] . '/shop/forgot/';?>"  style="text-decoration:none" >Forgot password?</a>
        </div>
    </div>    
    <div style="clear:both"></div>
    <div id="empty"></div>
</div>